package com.example.myapplication;

public class GameEvent {
    private String eventId;
    private String eventName;
    private String gameIp;
    private String date;
    private String location;
    private String description;
    private String participants;
    private String userEmail;

    // 与GameEventDBHelper的insert逻辑完全对齐的构造函数
    public GameEvent(String eventId, String eventName, String gameIp, String date, String location, String description, String participants, String userEmail) {
        this.eventId = eventId;
        this.eventName = eventName;
        this.gameIp = gameIp;
        this.date = date;
        this.location = location;
        this.description = description;
        this.participants = participants;
        this.userEmail = userEmail;
    }

    // Getter方法（用于RecyclerView展示和数据库查询）
    public String getEventId() { return eventId; }
    public String getEventName() { return eventName; }
    public String getDate() { return date; }
    public String getGameIp() { return gameIp; }
    public String getLocation() { return location; }
    public String getDescription() { return description; }
    public String getParticipants() { return participants; }
    public String getUserEmail() { return userEmail; }

    // Setter方法（用于修改操作）
    public void setEventName(String eventName) { this.eventName = eventName; }
    public void setGameIp(String gameIp) { this.gameIp = gameIp; }
    public void setDate(String date) { this.date = date; }
    public void setLocation(String location) { this.location = location; }
    public void setDescription(String description) { this.description = description; }
    public void setParticipants(String participants) { this.participants = participants; }
}